﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administracao/MasterPage/Administracao.Master" AutoEventWireup="true" CodeBehind="Usuários.aspx.cs" Inherits="MadearteNovo.Administracao.Pages.Usuários" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Styles/cssUsuarios.min.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Barra" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Conteudo" runat="server">
    <asp:PlaceHolder runat="server" ID="placeholder"></asp:PlaceHolder>
    <article id="pagUser">
        <h1>Usuários cadastrados no site</h1>
        <div id="opcoes">
            <asp:DropDownList runat="server" ID="ddlUsuarios" CssClass="ddlStyle"></asp:DropDownList>
            <asp:Button ID="btnExcluirUser" runat="server" Text="Excluir Usuário" OnClick="btnExcluirUser_Click" CssClass="botoes" />
            <asp:Button ID="btnAddUser" runat="server" Text="Adicionar Usuário" OnClientClick="abrePopUp(); return false;" CssClass="botoes" OnClick="btnAddUser_Click" />
        </div>
    </article>

    <section id="sectionPopup">
        <section id="sectionModal">
            <header>
                <section id="tituloModal">
                    Adicionar Usuário
                </section>
                <section id="sairModal"></section>
            </header>
            <section id="addUsuário">
                <table>
                    <tr>
                        <td>Nome 
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtNome"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Login 
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtLogin"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Senha 
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtSenha" TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Confirme a senha 
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtConfirmaSenha" TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center">
                            <asp:Button runat="server" Text="Salvar" ID="btnAdicionar" OnClick="btnAdicionar_Click" />
                        </td>
                    </tr>
                </table>
            </section>
        </section>
    </section>


</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Javascript" runat="server">
    <script>
        $(document).ready(function () {
            $('#pageAdicionarImagens').hide();

            $('#sairModal').click(function () {
                $('#sectionPopup').css('display', 'none');
            });
        }); function abrePopUp() {
            $('#sectionPopup').css('display', 'block');

        }
    </script>

</asp:Content>

